package com.lanchetech.dao;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.ShopStatistics;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ShopStatisticsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopStatistics record);

    int insertSelective(ShopStatistics record);

    ShopStatistics selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopStatistics record);

    int updateByPrimaryKey(ShopStatistics record);

    int updateCompletePay(ShopStatistics shopStatistics);

    int updateViewCountByShopId(@Param("shopId")Long shopId);

    int updateVisitCountByShopId(@Param("shopId")Long shopId);

    ShopStatistics findOneByShopId(@Param("shopId")Long shopId);


}